function openWin(url,name,width,height, posw,posh) { var commonArg = "toolbar=no" + ",location=no" + ",directories=no" + ",status=no" + ",menubar=no" + ",scrollbars=no" + ",resizable=no" var specificArg = ",width="+width + ",height="+height newwin = window.open(url, "Choose", commonArg+specificArg) newwin.focus("Choose") newwin.moveTo(posw,posh) } function openPort(port){ url= '/web/basic/hal_commoncontacts.nsf/(lupPorts)/'+port+'?OpenDocument&Close=True&docMode=Preview&showEdit=True' this.parent.fra_ViewDoc.location = url frameset = parent.document.getElementById('frs_ContentBottom') frameset.cols = '50%,*' //frameValues //highlightLink(docId,prevHighlightedLink) } function OpenVoyage(VesselCode) { url= '/web/chain/hual_schedules.nsf/lupVoyages/'+VesselCode+'?OpenDocument&Close=True' this.parent.fra_ViewDoc.location = url frameset = parent.document.getElementById('frs_ContentBottom') frameset.cols = '50%,*' //frameValues //highlightLink(docId,prevHighlightedLink) } function changeimage(oldopen,id){ if (oldopen=="hide"){ document['img'+id].src="/web/basic/hualweb_resources.nsf/icon_arrow_1.gif"; } else{ document['img'+id].src="/web/basic/hualweb_resources.nsf/icon_arrow_2.gif"; } } function ExecuteSearch() { var strName, ViewName, strStartPort, strValgtStartPort, strEndPort, strValgtEndPort, strVessel, strValgtVessel var strToday, strCustomer, strValgtBrand,strBrandCode var strDateFrom, strValgtDateFrom, strDateTo, strValgtDateTo, strQuery ,strValgtQuery var strTradecode, strValgtTradecode, strStartArea, strValgtStartArea, strEndArea, strValgtEndArea, strPath, strTemp var searchInn; strValgtStartPort = document.forms[0].StartPortCode.value strValgtEndPort = document.forms[0].EndPortCode.value strValgtVessel = document.forms[0].VesselCode.value strValgtDateFrom = document.forms[0].DateFrom.value strValgtDateTo = document.forms[0].DateTo.value strValgtTradecode = document.forms[0].TradeCode.value strValgtStartArea = document.forms[0].StartAreaCode.value strValgtEndArea = document.forms[0].EndAreaCode.value strCustomer = document.forms[0].CustomerCode.value strValgtBrand = document.forms[0].BrandCode.value strQuery = document.forms[0].SearchQuery.value sSort = document.forms[0].SortSearch.value var box = document.forms[0].SearchIn; var searchInn = box.options[box.selectedIndex].value; sVariables ="" cmsDb = 'https://www.hoeghautoliners.com/'; if (searchInn!=""){ searchInn=searchInn.split('$') } if (strValgtDateFrom=="") { strDateFrom = "" } else { strDateFrom = "&DateFrom=" + strValgtDateFrom sVariables = sVariables +strDateFrom } if (strQuery=="") { strValgtQuery = "" } else { strQuery = strQuery.replace("&","and") strQuery = escape(strQuery) strQuery = "&SearchFor=" + strQuery sVariables = sVariables + strQuery } if (strValgtDateTo=="") { strDateTo = "" } else { strDateTo = "&DateTo=" + strValgtDateTo sVariables = sVariables + strDateTo } if (strValgtStartPort=="") { strStartPort = "" } else { strStartPort = "&load=" + strValgtStartPort sVariables = sVariables + strStartPort } if (strValgtEndPort=="") { strEndPort = "" } else { strEndPort = "&EndPort=" + strValgtEndPort sVariables = sVariables + strEndPort } if (strValgtVessel=="") { strVessel = "" } else { strVessel = "&Vessel=" + strValgtVessel sVariables = sVariables + strVessel } if (strValgtTradecode=="") { strTradecode = "" } else { strTradecode = "&trade=" + strValgtTradecode sVariables = sVariables + strTradecode } if (strValgtBrand=="") { strBrandCode = "" } else { strBrandCode = "&brand=" + strValgtBrand sVariables = sVariables + strBrandCode } if (strCustomer!="") { sVariables = sVariables + "&customer="+strCustomer } if (strValgtStartArea=="") { strStartArea = "" } else { strStartArea = "&AreaFrom=" + strValgtStartArea sVariables = sVariables + strStartArea } if (strValgtEndArea=="") { strEndArea = "" } else { strEndArea = "&AreaTo=" + strValgtEndArea sVariables = sVariables + strEndArea } if(document.forms[0].AreaOrPortEnd[1].checked) { strEndArea = "" } else { strEndPort = "" } if(sSort=="") { sSort = "" } else { sSort = "&Sort=" + sSort } pro = window.location.protocol host = window.location.hostname strTemp = location.pathname if (searchInn[1]=='No') { if (sVariables=='') { return; } } sVariables = sVariables +"&docID="+searchInn[0] if( sVariables !="" ){ parent.frames['fra_ViewListing'].location.href= '/'+cmsDb+'/PcoSearchResult?ReadForm&query=test&count=10&st=0&fr=0'+ sVariables; } } function portAreaPicker(returnType,returnName,Currentids,seperator,preSelected,showValue,PortDB) { //Returntype = If function should return selected persons to a fireld or a function. Takes Field or Function as value //ReturnName = Name of function or Field to return value to //Currentids = CompanyKey of Customers that shall be shown under Current Customer choice //Seperator = What to use as a seperator. If "," then "1" will be sent in the url, ";" = 2 //preSelected = Field which holds values that should be preSelected //showVakue - determins if the rightmost selectbox should shov value or option.Takes 1 or 2 as parameter //showCurrent Determins if Ports from Schedule or Keyword will be used. 1= All Ports, 2 = Schedule dbfp = "web/basic/hualweb_resources.nsf"; dbfpKeyWords ="Web\Basic\esymfkeys.nsf"; dbfpKeyWords='Web/Basic/esymfkeys.nsf' dbfpSchedule ="web/chain/hual_schedules.nsf"; url = '/'+dbfp+'/frs_selectPortArea?OpenFrameset&selview=.viePortLookup?openview&returnName='+returnName+'##count=-1'; url=url+'&returnType='+returnType+'&returnName='+returnName; if (Currentids) { url = url +'&participants=' + Currentids; } if (seperator) { if (seperator==";") { seperator=2 } else{ seperator=1 } url = url +'&seperator=' + seperator; } else{ url = url +'&seperator=' + 1; } if (preSelected) { url = url + '&preSelected='+preSelected } if (showValue) { url = url + '&showValue='+showValue } else{ url = url + '&showValue=1' } if (PortDB){ if (PortDB==1) {openDB = dbfpKeyWords} else {openDB = dbfpSchedule } url = url + '&PortDB'+showValue+'&frame=viewresult&src='+'/'+dbfpKeyWords+'/.viePortLookup?openview&count=-1' } else{ url = url + '&PortDB=1&2=' } window.open(url,'','height=600,width=600,scrollbars=yes','') } //----------------------- function OpenSub2(id, status) { var imgType; var x = document.getElementsByName(id); for (var i=0;i